package com.yihu.article.beans;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.alibaba.fastjson.JSON;
import com.yihu.beans.PictureDetail;
import com.yihu.web.bean.Artwork;
import com.yihu.web.bean.Video;

@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown=true)
public class Article implements Serializable{
	
	private String id;
	private String title;
	private String categoryId;
	private String typeId;
	private String author;
	private String keyword[];//标签或关键字
	private String summary;//文章摘要
	private String source;
	private boolean isPublic;
	private boolean isRecommned;
	private boolean isTop;
	private boolean isOriginal;
	private int status;
	private int sort;
	private int pv;//查看数
	private String createBy;
	private Date createAt = new Date();
	private String postTime;
	private List<PictureDetail> icons;
	private Date updatedAt;
	private String content;
	private String contentId;
	private String categoryName;
    private int type;// 1:内部文章，2：用户文章
    private String subTitle;	//副标题
    private String layout;		//布局方式	
    
    private String wxSharePic;  //wx分享图
    private List<Artwork> relates; //文章相关产品
    private String relateTile;   //相关产品的标题
    
    private String editor;  //汇编者
    private String inputer;  //录入者
    private String auditor;  //审批者
    private String publicAuthor; //作者公开呢称
    private String sourceMaterial;// 素材来源
    private List<Video> videos;
    
	
	public List<Video> getVideos() {
		return videos;
	}
	public void setVideos(List<Video> videos) {
		this.videos = videos;
	}
	public String getEditor() {
		return editor;
	}
	public void setEditor(String editor) {
		this.editor = editor;
	}
	public String getInputer() {
		return inputer;
	}
	public void setInputer(String inputer) {
		this.inputer = inputer;
	}
	public String getAuditor() {
		return auditor;
	}
	public void setAuditor(String auditor) {
		this.auditor = auditor;
	}
	public String getPublicAuthor() {
		return publicAuthor;
	}
	public void setPublicAuthor(String publicAuthor) {
		this.publicAuthor = publicAuthor;
	}
	public String getSourceMaterial() {
		return sourceMaterial;
	}
	public void setSourceMaterial(String sourceMaterial) {
		this.sourceMaterial = sourceMaterial;
	}
	public String getWxSharePic() {
		return wxSharePic;
	}
	public void setWxSharePic(String wxSharePic) {
		this.wxSharePic = wxSharePic;
	}
	public List<Artwork> getRelates() {
		return relates;
	}
	public void setRelates(List<Artwork> relates) {
		this.relates = relates;
	}
	public String getRelateTile() {
		return relateTile;
	}
	public void setRelateTile(String relateTile) {
		this.relateTile = relateTile;
	}
	public String getSubTitle() {
		return subTitle;
	}
	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle;
	}
	public String getLayout() {
		return layout;
	}
	public void setLayout(String layout) {
		this.layout = layout;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	
	
	public List<PictureDetail> getIcons() {
		return icons;
	}
	public void setIcons(List<PictureDetail> icons) {
		this.icons = icons;
	}
	public String getContentId() {
		return contentId;
	}
	public void setContentId(String contentId) {
		this.contentId = contentId;
	}
	public String getPostTime() {
		return postTime;
	}
	public void setPostTime(String postTime) {
		this.postTime = postTime;
	}
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}
	public String getTypeId() {
		return typeId;
	}
	public void setTypeId(String typeId) {
		this.typeId = typeId;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	
	
	public String[] getKeyword() {
		return keyword;
	}
	public void setKeyword(String[] keyword) {
		this.keyword = keyword;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public boolean isPublic() {
		return isPublic;
	}
	public void setPublic(boolean isPublic) {
		this.isPublic = isPublic;
	}
	public boolean isRecommned() {
		return isRecommned;
	}
	public void setRecommned(boolean isRecommned) {
		this.isRecommned = isRecommned;
	}
	public boolean isTop() {
		return isTop;
	}
	public void setTop(boolean isTop) {
		this.isTop = isTop;
	}
	public boolean isOriginal() {
		return isOriginal;
	}
	public void setOriginal(boolean isOriginal) {
		this.isOriginal = isOriginal;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public int getSort() {
		return sort;
	}
	public void setSort(int sort) {
		this.sort = sort;
	}
	public int getPv() {
		return pv;
	}
	public void setPv(int pv) {
		this.pv = pv;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public Date getCreateAt() {
		return createAt;
	}
	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}
	public Date getUpdatedAt() {
		return updatedAt;
	}
	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return JSON.toJSONString(this);
	}
	
	
}
